package com.daxia.bumall.web.controller.m;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.daxia.bumall.dto.ProductPropertiesDTO;
import com.daxia.bumall.dto.api.ProductPropertiesAPIDTO;
import com.daxia.bumall.dto.api.info.ProductPropertiesInfoAPIDTO;
import com.daxia.bumall.support.MPage;

@Controller
@RequestMapping(value = "/m/productProperties", produces = "application/json;charset=UTF-8")
public class MProductPropertiesController extends MBaseController {
    
    @ResponseBody
    @RequestMapping("list")
    public String list(ProductPropertiesDTO dto, MPage page) throws Exception {
    
        List<ProductPropertiesDTO> productPropertiesDTOs = productPropertiesService.find(dto, page);

        return toApiOutput(productPropertiesDTOs, ProductPropertiesAPIDTO.class, ProductPropertiesInfoAPIDTO.class, page);
    }
    
}
